package com.niiwoo.civet.trade.service.local.newRefund.notify.mq;

import org.springframework.stereotype.Component;

import com.niiwoo.asset.org.business.dto.mq.RepaymentPlanChangeDTO;
import com.niiwoo.civet.trade.service.local.newRefund.notify.dto.RefundNotifyDTO;
import com.niiwoo.civet.trade.service.local.newRefund.notify.enums.RefundNotifyEnum;

/**
 * 机构还款计划变更通知
 * 
 * 触发条件：用户还款、非担保自动还款
 *  
 * @author: kevin.jia
 * @version 1.0.0
 */
@Component
public class OrgRefundPlanChangeNotify extends MQRefundNotify {

	@Override
	public Object bulidParam(RefundNotifyDTO refundNotifyDTO) {
		RepaymentPlanChangeDTO repaymentPlanChangeDTO = new RepaymentPlanChangeDTO();
		repaymentPlanChangeDTO.setProjectId(refundNotifyDTO.getProject().getProjectId());
		return repaymentPlanChangeDTO;
	}
	
	@Override
	public RefundNotifyEnum getType() {
		return RefundNotifyEnum.ORG_REFUND_PLAN_CHANGE;
	}
}